home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / toolbox / max2 < prev    next >
Text File  |  1994-05-08  |  494b  |  20 lines

  1. //-------------------------------------------------------------------//
  2. //
  3. //  Syntax:     max2 ( A, B )
  4.  
  5. //  Description:
  6.  
  7. //  Return a matrix the same size as A and B with the largest
  8. //  elements taken from A and B.
  9.  
  10. //  Note: the builtin function max now handles this condition.
  11. //        This file is maintained for backward compatibility.
  12.  
  13. //-------------------------------------------------------------------//
  14.  
  15. max2 = function(a,b)
  16. {
  17.   return max(a,b);
  18.   // return (b+(a-b).*(a>b));
  19. };
  20.